<!-- 私有CSS -->
{css href="__STATIC__/admin/css/index__MIN__.css" /}

<div class="container">
    <!-- 当前信息开始 -->
    <div class="current-info-wrap home-row">
        <div class="current-info">
            <p class="current-info-text">欢迎管理员： <strong class="current-info-text-name" title="admin" onclick="showModalFrame('#admin_info', '.admin_info-modal_frame-container', '.admin_info-modal_frame-title')">{$Think.session.admininfo.name}</strong>！当前时间:{:date('Y-m-d H:i:s')}</p>
        </div>
    </div>
    <!-- 当前信息结束 -->
    
    <!-- 数据统计开始 -->
    <div class="data_statistics-wrap home-row">
        <p class="data_statistics-title home-row-title">数据统计</p>
    
        <ul class="data_statistics-list home-row-body">
            <li class="data_statistics-item">
                <a class="data_statistics-link" href="{:Url('admin/Nav/index')}" title="导航栏数">
                    <p class="data_statistics-title">导航栏数</p>
                    <span class="data_statistics-quantity">{$navTotal}</span>
                </a>
            </li>
            <li class="data_statistics-item">
                <a class="data_statistics-link" href="{:Url('admin/CarouselFigure/index')}" title="轮播图数">
                    <p class="data_statistics-title">轮播图数</p>
                    <span class="data_statistics-quantity">{$carouselFigureTotal}</span>
                </a>
            </li>
            <li class="data_statistics-item">
                <a class="data_statistics-link" href="{:Url('admin/Products/index')}" title="产品数">
                    <p class="data_statistics-title">产品数</p>
                    <span class="data_statistics-quantity">{$productsTotal}</span>
                </a>
            </li>
            <li class="data_statistics-item">
                <a class="data_statistics-link" href="{:Url('admin/News/index')}" title="新闻数">
                    <p class="data_statistics-title">新闻数</p>
                    <span class="data_statistics-quantity">{$newsTotal}</span>
                </a>
            </li>
            <li class="data_statistics-item">
                <a class="data_statistics-link" href="{:Url('admin/FriendshipLink/index')}" title="友情链接数">
                    <p class="data_statistics-title">友情链接数</p>
                    <span class="data_statistics-quantity">{$friendshipLinkTotal}</span>
                </a>
            </li>
        </ul>
    </div>
    <!-- 数据统计结束 -->
    
    <!-- 系统信息开始 -->
    <div class="system_info-wrap home-row">
        <p class="system_info-title home-row-title">系统信息</p>
    
        <div class="system_info-body home-row-body">
            <table class="system_info-table home-row-table">
                <tbody class="system_info-table-body home-row-table-body">
                    <tr class="system_info-table-tr home-row-table-tr">
                        <td class="system_info-table-td home-row-table-td">操作系统</td>
                        <td class="system_info-table-td home-row-table-td">{:PHP_OS}</td>
                    </tr>
                    <tr class="system_info-table-tr home-row-table-tr">
                        <td class="system_info-table-td home-row-table-td">系统版本</td>
                        <td class="system_info-table-td home-row-table-td">{:php_uname()}</td>
                    </tr>
                    <tr class="system_info-table-tr home-row-table-tr">
                        <td class="system_info-table-td home-row-table-td">主机名</td>
                        <td class="system_info-table-td home-row-table-td">{:$_SERVER['SERVER_NAME']}</td>
                    </tr>
                    <tr class="system_info-table-tr home-row-table-tr">
                        <td class="system_info-table-td home-row-table-td">IP地址</td>
                        <td class="system_info-table-td home-row-table-td">{:$_SERVER["REMOTE_ADDR"]}</td>
                    </tr>
                    <tr class="system_info-table-tr home-row-table-tr">
                        <td class="system_info-table-td home-row-table-td">语言</td>
                        <td class="system_info-table-td home-row-table-td">{:$_SERVER['HTTP_ACCEPT_LANGUAGE']}</td>
                    </tr>
                    <tr class="system_info-table-tr home-row-table-tr">
                        <td class="system_info-table-td home-row-table-td">端口</td>
                        <td class="system_info-table-td home-row-table-td">{:$_SERVER['SERVER_PORT']}</td>
                    </tr>
                    <tr class="system_info-table-tr home-row-table-tr">
                        <td class="system_info-table-td home-row-table-td">PHP版本</td>
                        <td class="system_info-table-td home-row-table-td">{:PHP_VERSION}</td>
                    </tr>
                    <tr class="system_info-table-tr home-row-table-tr">
                        <td class="system_info-table-td home-row-table-td">MySQL版本</td>
                        <td class="system_info-table-td home-row-table-td">{$mysqlVersion}</td>
                    </tr>
                    <tr class="system_info-table-tr home-row-table-tr">
                        <td class="system_info-table-td home-row-table-td">最大上传限制</td>
                        <td class="system_info-table-td home-row-table-td">{:get_cfg_var ('upload_max_filesize')}</td>
                    </tr>
                    <tr class="system_info-table-tr home-row-table-tr">
                        <td class="system_info-table-td home-row-table-td">最大执行时间</td>
                        <td class="system_info-table-td home-row-table-td">{:get_cfg_var('max_execution_time')}s</td>
                    </tr>
                    <tr class="system_info-table-tr home-row-table-tr">
                        <td class="system_info-table-td home-row-table-td">脚本运行占用最大内存</td>
                        <td class="system_info-table-td home-row-table-td">{:get_cfg_var('memory_limit')}</td>
                    </tr>
                    <tr class="system_info-table-tr home-row-table-tr">
                        <td class="system_info-table-td home-row-table-td">服务器端信息</td>
                        <td class="system_info-table-td home-row-table-td">{:$_SERVER ['SERVER_SOFTWARE']}</td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>
    <!-- 系统信息结束 -->
    
    <!-- 开发团队开始 -->
    <div class="development_team-wrap home-row">
        <p class="development_team-title home-row-title">开发团队</p>
    
        <div class="development_team-body home-row-body">
            <table class="development_team-table home-row-table">
                <tbody class="development_team-table-body home-row-table-body">
                    <tr class="development_team-table-tr home-row-table-tr">
                        <td class="development_team-table-td home-row-table-td">版本</td>
                        <td class="development_team-table-td home-row-table-td">1.1.0</td>
                    </tr>
                    <tr class="development_team-table-tr home-row-table-tr">
                        <td class="development_team-table-td home-row-table-td">版权所有</td>
                        <td class="development_team-table-td home-row-table-td">Ryan(Ryan) <a class="development_team-table-link home-row-table-link" href="javascript:;" title="访问官网">访问官网</a></td>
                    </tr>
                    <tr class="development_team-table-tr home-row-table-tr">
                        <td class="development_team-table-td home-row-table-td">开发者</td>
                        <td class="development_team-table-td home-row-table-td">Ryan</td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>
    <!-- 开发团队结束 -->
    
    <!-- 感谢开始 -->
    <div class="thank-wrap">
        <p class="thank-text">感谢JQuery,Fontawesome,JsDate,本系统由Ryan提供技术支持。</p>
    </div>
    <!-- 感谢结束 -->
</div>

<!-- 私有JS -->
<script type="text/babel">
    /**
     * 初始化
     * @return void
     */
    (function init() {
        // 提示
        prompt();
    })()

    /**
     * 提示
     * @return void
     */
    function prompt() {
        // 获取地址
        var isLogin = window.location.href.indexOf('login') !== -1;

        // 判断是否登录
        if (isLogin) message('add', 'success', '登录成功');
    }
</script>